package org.deltaset.meta.internal;

import java.util.logging.Level;
import java.util.logging.Logger;
import org.deltaset.meta.event.ExecuteListener;
import org.deltaset.meta.MetaAction;

/**
 *
 * @author dmakariev
 */
class ExecuteListenerImpl implements ExecuteListener {

    private static final Logger logger = Logger.getLogger(ExecuteListenerImpl.class.getName());

    @Override
    public boolean hideAction(MetaAction metaAction, Object model) {
        return false;
    }

    @Override
    public void auditExecuteAction(MetaAction metaAction, Object model, Object[] parameterValues) {
        final Class entityClass = metaAction.getEntityClass();
        final Class executeClass = metaAction.getExecuteClass();
        logger.log(Level.INFO, "ExecuteListenerImpl auditExecuteAction ");
        logger.log(Level.INFO, "   entityClass={0}", entityClass);
        logger.log(Level.INFO, "   executeClass={0}", executeClass);
        logger.log(Level.INFO, "   metaAction={0}", metaAction);
    }
}
